﻿using MediaFoundation;

public static class COMHResult
{
    private static HResult hr;
    public static HResult Result
    {
        set
        {
            if (value != HResult.S_OK)
            {
                // throw new Exception("COM Result:" + value.ToString());
            }
            hr = value;
        }
        get { return hr; }
    }
}